package com.example.test.api.thread;


import cn.hutool.http.HttpRequest;

public class HttpAppHome implements Runnable {


    @Override
    public void run() {
        String url = "https://oaappver.geely.com/server-app/version2/r/sys/appmgtrest/getAppHomeInfo?userId=99011&language=cn";
        HttpRequest httpRequest = HttpRequest.get(url)
                .header("token", "1141fc84-ad8a-4138-a891-44b2904ebb8c");
        long stime = System.currentTimeMillis();
        String result = httpRequest.execute().body();
        long etime = System.currentTimeMillis();
        System.out.println("耗时：" + (etime - stime) + "返回结果：" + result);
    }
}
